import redis
from tour_comment_crawler.settings import REDIS_DB, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT

r = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, db=REDIS_DB, password=REDIS_PASSWORD)
local_debug = False

key = "xiecheng:start_urls"

area = "chongqing"
category = "hotel"
tour_id = 2
url = "http://hotels.ctrip.com/hotel/dianping/425835.html"

url += "&area={0}&category={1}&tour_id={2}".format(area, category, tour_id)

r.sadd(key, url)
